﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;


namespace BadHabit.Factory.Controls {
    /// <summary>
    /// Interaction logic for WhiteBoardPanel.xaml
    /// </summary>
    public partial class TaskPostItPanel : TaskPanelBase {

        /// <summary>
        /// Default Constructor.
        /// </summary>
        public TaskPostItPanel() {
            InitializeComponent();            
        }

        
        public override void AddTask_Executed(object sender, ExecutedRoutedEventArgs e) {
            postItDoneListBox.AddTask_Executed(sender, e);
        }


        private void Paste_Executed(object sender, ExecutedRoutedEventArgs e) {
            
            string[] tasksToPaste = GetTasksFromClipBoard();
            if (tasksToPaste == null || tasksToPaste.Length == 0)
                return;

            postItToDoListBox.PasteTasks(tasksToPaste);
        }

      


        



        
    }
}
